package com.mhkj.base.itemInfo.phase.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mhkj.base.itemInfo.group.entity.Group;
import com.mhkj.base.itemInfo.item.entity.Item;
import com.mhkj.base.region.entity.TSysNation;
import com.mics.core.common.validate.annotation.Validate;
import com.mics.core.system.base.entity.BaseDomain;

/**
 * 期区设置/项目构成
 * @author wt
 */
@Entity
@Table(name="t_phase")
@Validate
public class Phase  extends BaseDomain {

	/**
	 * 序号
	 */
	private static final long serialVersionUID = -6552976445764725962L;

	/**
	 * 期区名称
	 */
	@Column(name="phase_name")
	private String phaseName;
	/**
	 * 地上建筑面积
	 */
	@Column(name="Aboveground_building_area")
	private Double abovegroundBuildingArea;
	
	/**
	 * 低下建筑面积
	 */
	@Column(name="underground_building_area ")
	private Double undergroundBuildingArea;
	
	/**
	 * 地上车位面积
	 */
	@Column(name="ground_parking_area")
	private Double groundParkingArea;
	
	/**
	 *  地下车位面积
	 */
	@Column(name="undergroundParkingArea")
	private Double undergroundParkingArea;
	
	/**
	 * 可售面积
	 */
	@Column(name="saleable_area ")
	private Double saleableArea;
	
	/**
	 * 说明
	 */
	@Column(name="remark",length=550)
	private String remark;
	
	
	@OneToOne
	@JoinColumn(name = "city_id")
	private TSysNation tSysNation;
	
	/**
	 * 城市id
	 */
	 @Transient
	 private Long cityId;
	
	/**
	 * 省id
	 */
	@Transient
	private Long provinceId;

	@ManyToOne
	@JoinColumn(name = "item_id")
	private Item item;
	

	/**
	 * 项目id
	 */
	@Transient
	private Long itemId;
	
	@ManyToOne
	@JoinColumn(name = "group_id")
	private Group group;
	
	
	/**
	 * 组团id
	 */
	@Transient
	private Long groupId;


	public Long getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(Long provinceId) {
		this.provinceId = provinceId;
	}
	public String getPhaseName() {
		return phaseName;
	}
	public void setPhaseName(String phaseName) {
		this.phaseName = phaseName;
	}
	public Double getAbovegroundBuildingArea() {
		return abovegroundBuildingArea;
	}
	public void setAbovegroundBuildingArea(Double abovegroundBuildingArea) {
		this.abovegroundBuildingArea = abovegroundBuildingArea;
	}
	public Double getUndergroundBuildingArea() {
		return undergroundBuildingArea;
	}
	public void setUndergroundBuildingArea(Double undergroundBuildingArea) {
		this.undergroundBuildingArea = undergroundBuildingArea;
	}
	public Double getGroundParkingArea() {
		return groundParkingArea;
	}
	public void setGroundParkingArea(Double groundParkingArea) {
		this.groundParkingArea = groundParkingArea;
	}
	public Double getUndergroundParkingArea() {
		return undergroundParkingArea;
	}
	public void setUndergroundParkingArea(Double undergroundParkingArea) {
		this.undergroundParkingArea = undergroundParkingArea;
	}
	public Double getSaleableArea() {
		return saleableArea;
	}
	public void setSaleableArea(Double saleableArea) {
		this.saleableArea = saleableArea;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public TSysNation gettSysNation() {
		return tSysNation;
	}
	public void settSysNation(TSysNation tSysNation) {
		this.tSysNation = tSysNation;
	}
	public Long getCityId() {
		return cityId;
	}
	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}
	public Item getItem() {
		return item;
	}
	public void setItem(Item item) {
		this.item = item;
	}
	public Long getItemId() {
		return itemId;
	}
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}
	public Group getGroup() {
		return group;
	}
	public void setGroup(Group group) {
		this.group = group;
	}
	public Long getGroupId() {
		return groupId;
	}
	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}
	
	
	
}
